import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  index: '/work/index',
  add: '/work/add',
  download:'/work/download'
}

/**
 * 列表记录
 */
export function list (params) {
  return axios({
    url: api.index,
    method: 'get',
    params
  })
}

/**
 * 列表记录
 */
export function create (data) {
  return axios({
    url: api.add,
    method: 'post',
    data
  })
}

export function download (params) {
  return axios({
    url: api.download,
    method: 'get',
    params
  })
}
